package com.example.demo.common;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-06-07
 * Time: 8:37
 */
public class ApplicationVariable {
    // 存放当前登录用户的 session key
    public static final String SESSION_USERINFO_KEY = "SESSION_USERINFO_KEY";

    // 文章摘要截取的最大长度
    public static final int maxLength = 200;

    /**
     * 验证码 session key
     */
    public static final String SESSION_KEY_CHECK_CODE = "SESSION_KEY_CHECK_CODE";

    // 邮箱验证码得 Session Key
    public static final String SEND_CAPTCHA = "SEND_CAPTCHA";

//    // 定义全局的计数器
//    public static int count;
//
//    // 定义全局的 ip 和 计数器的 hashmap 对象
//    public static HashMap<String, Integer> IP_HashMap = new HashMap<>();
}
